home *** CD-ROM | disk | FTP | other *** search
- on pressNoteButton
- set spriteNum to the clickOn
- set upCast to the castNum of sprite spriteNum
- set downCast to the number of cast (the name of cast upCast & ".down")
- puppetSprite(spriteNum, 1)
- puppetSound("MouseDown.aif")
- repeat while the mouseDown
- if rollOver(spriteNum) then
- set the castNum of sprite spriteNum to downCast
- else
- set the castNum of sprite spriteNum to upCast
- end if
- updateStage()
- end repeat
- if rollOver(spriteNum) then
- startTimer()
- repeat while the timer < 20
- set the castNum of sprite spriteNum to downCast
- updateStage()
- end repeat
- set the castNum of sprite spriteNum to upCast
- updateStage()
- puppetSprite(spriteNum, 0)
- puppetSound("MouseUp.aif")
- updateStage()
- set RollOn to 1
- else
- set RollOn to 0
- end if
- return RollOn
- end
-